wayland/glcontext: Don't call wl_surface.offset on old objects
authorJonas Ådahl <jadahl@gmail.com>
Fri, 17 Feb 2023 10:59:14 +0000 (11:59 +0100)
committerJonas Ådahl <jadahl@gmail.com>
Fri, 17 Feb 2023 11:03:27 +0000 (12:03 +0100)
commit3183a213472067534ba907d78edf57af96f277a2
tree7108908426166585d390a6c77f5da7e22a1ebaab
parent07f090f94781e6cb684468f683b7c9d69df4b857
wayland/glcontext: Don't call wl_surface.offset on old objects

The availability of wl_surface.offset depends on the compositor, so we
can't call it unconditionally. Add a version check to so we only call
offset if we know we won't raise a protocol error.

Fixes: 0eb791eaaa ("Make mask nodes more versatile")
gdk/wayland/gdkglcontext-wayland.c